﻿@model PagedResult<token_wallet_bill_detail_dto>
@{ int type = ViewBag.type;}
@{
    if (Model.rows.Count > 0) {
        if (type == 2) {
            foreach (var item in Model.rows) {

                <li>
                    <div class="td" style="width:45% ">
                        <div class="tdfirst col-gray2">
                            @item.nick_name
                            <br>
                            @item.mobile
                        </div>
                    </div>
                    <div class="td" style="width:35% ">
                        <span class="col-red fn32">@item.money</span>
                        <em class="col-red fn28">RMB</em>
                    </div>
                    @{ var time = item.datetime.Split(' ').ToArray();}
                    <div class="td"><span class="col-gray2">@time[0]<br />@time[1]</span></div>
                </li>
            }


        } else {
            foreach (var item in Model.rows) {
                <li onclick="@(!string.IsNullOrEmpty(item.link_url) ? "window.location.href='" + item.link_url + "'" : "")">
                        <div class="td" style="width:55% ">
                            <div class="tdfirst col-gray2">
                                @item.order_no
                                <br>
                                @item.datetime
                            </div>
                        </div>
                        <div class="td" style="width:25% ">
                            <span class="col-red fn32">@item.money</span>
                            <em class="col-red fn28">RMB</em>
                        </div>
                        <div class="td"><span class="col-gray2">@item.status_desc</span></div>
                </li>
            }
        }
    }
    <page rows="@Model.rows.Count()" total_result="@Model.total_result"></page>
}

